@using IdentityServer4.Extensions
@inject IHtmlLocalizer<AuthServerLocalResource> Localizer
<div class="px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
    <h1 class="display-4">
        <img class="icon" alt="Logo" src="/images/skoruba-icon.png">
        Skoruba IdentityServer4
        <small>(Version 1.0.0)</small>
    </h1>
</div>

<div class="card-deck mb-3 text-center">
    @if (!User.IsAuthenticated())
    {
        <div class="card mb-4 box-shadow">
            <div class="card-header">
                <h4 class="my-0 font-weight-normal">@Localizer["Home:Login"]</h4>
            </div>
            <div class="card-body">
                <h1 class="card-title">
                    <span class="oi oi-lock-locked" title="@Localizer["Home:Login"]" aria-hidden="true"></span>
                </h1>
                <a asp-controller="Account" asp-action="Login" class="btn btn-lg btn-block btn-primary">@Localizer["Home:Login"]</a>
            </div>
        </div>
    }

    <div class="card mb-4 box-shadow">
        <div class="card-header">
            <h4 class="my-0 font-weight-normal">@Localizer["Home:Discovery"]</h4>
        </div>
        <div class="card-body">
            <h1 class="card-title">
                <span class="oi oi-monitor" title="@Localizer["Home:Discovery"]" aria-hidden="true"></span>
            </h1>
            <a href="~/.well-known/openid-configuration" class="btn btn-lg btn-block btn-outline-primary">@Localizer["Home:Discovery"]</a>
        </div>
    </div>

    @if (User.IsAuthenticated())
    {
        <div class="card mb-4 box-shadow">
            <div class="card-header">
                <h4 class="my-0 font-weight-normal">@Localizer["Home:Diagnostics"]</h4>
            </div>
            <div class="card-body">
                <h1 class="card-title">
                    <span class="oi oi-lock-locked" title="@Localizer["Home:Diagnostics"]" aria-hidden="true"></span>
                </h1>
                <a asp-controller="Diagnostics" asp-action="Index" class="btn btn-lg btn-block btn-primary">@Localizer["Home:Diagnostics"]</a>
            </div>
        </div>
    }
</div>
